PulseAccumulator
 
 
 Bean PulseAccumulator
 
Pulse Accumulator

Typical usage of the bean in user's code.

Typical Usage:

Required bean name is "PA1".

(1)
The following example waits for at least 300 events in the event counter:

 MAIN.C

void main(void)
{
  word cnt;
  
  PA1_ResetCounter(); /* reset the pulse accumulator */
  
  /* wait for 300 events */
  while( cnt<300 )
    PA1_GetCounterValue(&cnt);
  
}

For more about typical usage of the bean code please refer to the page Bean Code Typical Usage.


Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.